<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var a = prompt('请输入第一个数') * 1;
        var b = prompt('请输入第二个数') * 1;
        var c = prompt('请输入第三个数') * 1;
        var max = 0,
            min = 0,
            mid = 0;
        if (a > b) {
            max = a;
            if (c > a) {
                max = c;
                mid = a;
                min = b;
            } else {
                if (c < a && c > b) {
                    max = a;
                    mid = c;
                    min = b;
                } else if (c < b) {
                    max = a;
                    mid = b;
                    min = c;
                }
            }
        } else if (a < b) {
            max = b;
            if (c > b) {
                max = c;
                mid = b;
                min = a;
            } else{
                if (c > a && c < b) {
                    max = b;
                    mid = c;
                    min = a;
                } else if (c < a) {
                    max = b;
                    mid = a;
                    min = c;
                }
            }
        }

        console.log(max);
        console.log(mid);
        console.log(min);
    </script>

</body>

</html>